<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>主页</title>
	<link rel="shortcut icon" href="/ThinkBlog/Application/Home/View//Public/images/favicon.ico">
	<link rel="stylesheet" href="/ThinkBlog/Application/Home/View//Public/Flat-UI-master/bootstrap/css/bootstrap.css">
	<link rel="stylesheet" href="/ThinkBlog/Application/Home/View//Public/Flat-UI-master/css/flat-ui.css">
	<link rel="stylesheet" href="/ThinkBlog/Application/Home/View//Public/style.css">	
	<script type="text/javascript" src="/ThinkBlog/Application/Home/View//Public/Flat-UI-master/js/jquery-1.10.2.min.js"></script>
	<script type="text/javascript" src="/ThinkBlog/Application/Home/View//Public/Flat-UI-master/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="/ThinkBlog/Application/Home/View//Public/init.js"></script>	
</head>
<body>
<div class="header">
	<?php $cate = M('cate')->order('sort')->select(); $cate = \Util\Category::unlimitedForlayer($cate); ; ?>
	<!-- top begin -->
	<div class="htop hidden-xs">
		<div class="container">
			<div class="logo " data-toggle="tooltip" data-placement="right" data-original-title="没钱吃饭了,求点广告^_^">
				<a href="/ThinkBlog">
				<img src="/ThinkBlog/Application/Home/View//Public/images/logo.png" alt="安全者">
				</a>	
			</div>
		</div>
	</div>
	<!-- top end -->
	<!-- 头部导航开始 -->
	<header class="headroom navbar navbar-inverse navbar-fixed-top stuckMenu" role="banner navigation" style="position: relative; top: 0px;">
		<div class="container">
			<div class="navbar-header">
				<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand visible-xs" href="/ThinkBlog">安全者</a>
			</div>
			
			<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">	
				<ul class="nav navbar-nav navbar-left">           
	                <li><a href="/ThinkBlog">主页</a></li>
	           		<?php if(is_array($cate)): foreach($cate as $key=>$v): ?><li class="dropdown">
	              		 	<a href="/ThinkBlog/c-<?php echo ($v["id"]); ?>" <?php if($v['child']): ?>class="dropdown-toggle" data-toggle="dropdown"<?php endif; ?>><?php echo ($v["name"]); ?> <?php if($v['child']): ?><b class="caret"></b><?php endif; ?></a>
		                  <?php if($v['child']): ?><span class="dropdown-arrow"></span>
			                  <ul class="dropdown-menu">
			                  	<?php if(is_array($v["child"])): foreach($v["child"] as $key=>$value): ?><li><a href="/ThinkBlog/c-<?php echo ($value["id"]); ?>"><?php echo ($value["name"]); ?></a></li><?php endforeach; endif; ?>
			                  </ul><?php endif; ?>
		                </li><?php endforeach; endif; ?>
               </ul>	
			    <!-- search box begin -->
				<ul class="nav navbar-nav navbar-right">           
                <li class="dropdown">
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-search"></span></a>
                  <span class="dropdown-arrow"></span>
                  <ul class="dropdown-menu">
                    <li>
					    <form method="get" action="#" class="navbar-form navbar-left" role="search"> 
						<div class="form-group">
							<input type="text" name="s" class="form-control" placeholder="Search" x-webkit-speech="">
						</div>
					    </form>	
                    </li>
                  </ul>
                </li>
               </ul>			    
			    <!-- search box end -->
		    </nav>
		</div>
	</header>
	<!-- 头部导航结束 -->
</div>



<div class="container">

<div class="category">
<div class="row">
	<div class="col-md-9 col-sm-12">
		<!--main begin-->
		<div class="main global">
			<!-- 最新文章开始 -->  
			<?php if(is_array($article)): foreach($article as $key=>$v): ?><div class="content">
					<div class="row">
						<div class="col-md-4 col-sm-4 hidden-xs">
							<div class="thumb">
								<a href="/ThinkBlog/<?php echo ($v["id"]); ?>"><img data-original="/ThinkBlog/Public/thumb.jpg" alt="<?php echo ($v["title"]); ?>" class="lazy img-responsive img-rounded" src="/ThinkBlog/Public/thumb.jpg" style="display: block;"></a>
							</div>
						</div>
						<div class="col-md-8 col-sm-8">
							<dl>
								<div class="title">
									<a title="<?php echo ($v["title"]); ?>" href="/ThinkBlog/<?php echo ($v["id"]); ?>"><?php echo (htmlspecialchars($v["title"])); ?></a>
								</div>	
								<dd>
									<p><?php echo (htmlspecialchars($v["content"])); ?></p>
								</dd>
								<div class="clearfix"></div>
								<div class="info hidden-xs">
									 <div class="tags">
										<span class="mlabel-success">Tags:</span>
										<a href=" 恩恩" title="恩恩" class="mlabel-info">恩恩</a>						 
									 </div> 
								 	 <div class="views"><span class="mlabel-info"><a href="#" title="<?php echo ($v["title"]); ?>"><?php echo ($v["click"]); ?> Views</a></span></div>
								 </div>
							</dl>
						</div>
					</div>
				</div><?php endforeach; endif; ?>                                                        
			
		</div>		
			<div class="clearfix"></div>
			<div id="pagination">
				<ul>
					<li><span class="current">1</span></li>
					<li><a href="#" class="inactive">2</a></li> 
					<li class="next"> <a href="#"><span>下一页</span> </a></li>
					<li><a href="#" class="extend" title="跳转到最后一页"> 末页 </a></li>
				</ul>
			</div>
		</div>
		<!--main end-->
		
		<!--sidebar begin-->
			<div class="col-md-3 hidden-sm hidden-xs global">
	
	<div class="sidebar">
		<?php echo W('Hot/hot');?> 
		<?php echo W('Hot/latest');?> 

	</div>	
</div>
		<!-- sidebar end -->
	</div>
</div>


</div>

</div>	

<div class="footer">
		<div class="clearfix"></div>
	<div class="copyright hidden-xs">
		<span>© 2014 <a href="http://www.cnsecer.com/">CNSECER.COM</a> | Powered by <a target="_blank" href="#">ThinkBlog</a>  | Theme by <a href="http://www.cnsecer.com" target="_blank">安全者</a></span> <br>
	</div>
	<div class="copyright visible-xs ">
		<span>© 2014 <a href="http://www.cnsecer.com/">CNSECER Mobile</a> | <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_5086683'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "v1.cnzz.com/stat.php%3Fid%3D5086683%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script><span id="cnzz_stat_icon_5086683"></span><script src=" http://v1.cnzz.com/stat.php?id=5086683&amp;show=pic" type="text/javascript"></script>
	</span></div>
</div>
</body>
</html>